<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css显示模式</title>
    <style>
        div {
            width:100px;
            height: 100px;
            border: 5px solid #f00;
            /*块级元素：默认竖着拍 且可以设置宽高*/
            display: block;
        }
        span   {
            background-color: yellow;
            width: 100px;
            height: 100px;
            /*行内元素 不能设置宽高*/
            display: inline;
            /*可以切换元素的显示模式*/
            display: block;

        }
        input, button{
            /*行内块元素 既能横着排 且能设置宽高
            */
            display: inline-block;
            width: 100px;
            height: 100px;

        }
        .d2:hover {
            /*悬停时，元素显示模式为消失，且释放占据的文档流空间*/
            display: none;
        }
    </style>
</head>
<body>
<div class="d1"></div>
<div class="d2"></div>
<div class="d3"></div>
<hr>
<span>1234</span>
<span>2465</span>
<span>37568</span>
<hr>
<input type="text">
<input type="text">
<input type="text">
<button>按钮</button>
</body>
</html>